import socket

if __name__ == '__main__':
    target_Ip = '116.205.241.211'
    target_Port = 8888
    serverSocket = socket.socket()
    serverSocket.connect((target_Ip, target_Port))
    ret = serverSocket.recv(1024).decode()
    if ret:
        print(ret)
    while True:
        choice = input("输入指令")
        serverSocket.sendall(choice.encode())
        print(serverSocket.recv(1024).decode())


